package org.jeecg.modules.courseplan.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.config.mybatis.TenantContext;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: cou_course_plan
 * @author: baochangrong
 * @Date:   2022-02-17
 * @Version: V1.0
 */
@Data
@TableName("cou_course_plan")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="cou_course_plan对象", description="cou_course_plan")
public class CouCoursePlan implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**计划编码*/
	@Excel(name = "计划编码", width = 15)
    @ApiModelProperty(value = "计划编码")
    private String coursePlanCode;
	/**计划名称*/
	@Excel(name = "计划名称", width = 15)
    @ApiModelProperty(value = "计划名称")
    private String coursePlanName;
	/**学期ID*/
	@Excel(name = "学期ID", width = 15)
    @ApiModelProperty(value = "学期ID")
    @Dict(dicCode = "id" ,dicText = "semester_name", dictTable = "cou_semester")
    private String semesterId;
	/**学年ID*/
	@Excel(name = "学年ID", width = 15)
    @ApiModelProperty(value = "学年ID")
    @Dict(dicCode = "id" ,dicText = "school_year_name", dictTable = "cou_school_year")
    private String schoolYearId;
	/**年级ID*/
	@Excel(name = "年级ID", width = 15)
    @ApiModelProperty(value = "年级ID")
    @Dict(dicCode = "id" ,dicText = "grade_name", dictTable = "cou_grade")
    private String gradeId;
	/**科目编码*/
	@Excel(name = "科目编码", width = 15)
    @ApiModelProperty(value = "科目编码")
    @Dict(dicCode = "id" ,dicText = "subject_name", dictTable = "cou_subject")
    private String subjectId;
	/**计划生效日期*/
	@Excel(name = "计划生效日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划生效日期")
    private Date coursePlanStartDate;
	/**计划失效日期*/
	@Excel(name = "计划失效日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划失效日期")
    private Date coursePlanEndDate;
	/**状态（1：编制 2：发布 3：应用 4：过期 5：下线）*/
	@Excel(name = "状态（1：编制 2：发布 3：应用 4：过期 5：下线）", width = 15)
    @ApiModelProperty(value = "状态（1：编制 2：发布 3：应用 4：过期 5：下线）")
    @Dict(dicCode = "course_plan_status")
    private Integer coursePlanStatus;
	/**是否启用（1是（启用） 0否 （未启用））*/
	@Excel(name = "是否启用（1是（启用） 0否 （未启用））", width = 15)
    @ApiModelProperty(value = "是否启用（1是（启用） 0否 （未启用））")
    @Dict(dicCode = "iz_open")
    private Integer izOpen=1;
	/**是否删除（1是 0：否）*/
	@Excel(name = "是否删除（1是 0：否）", width = 15)
    @ApiModelProperty(value = "是否删除（1是 0：否）")
    @Dict(dicCode = "iz_delete")
    private Integer izDelete=0;
	/**学校编码(租户)*/
	@Excel(name = "学校编码(租户)", width = 15)
    @ApiModelProperty(value = "学校编码(租户)")
    private String tenantId= TenantContext.getTenant();
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人（ID）*/
	@Excel(name = "创建人（ID）", width = 15)
    @ApiModelProperty(value = "创建人（ID）")
    private String createUserId;
	/**编辑时间*/
	@Excel(name = "编辑时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "编辑时间")
    private Date editTime;
	/**编辑人id*/
	@Excel(name = "编辑人id", width = 15)
    @ApiModelProperty(value = "编辑人id")
    private String editUserId;
}
